package com.ks.community.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import java.io.Serializable;
import java.util.List;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

/**
 * <p>
 * 
 * </p>
 *
 * @author dCoder
 * @since 2022-03-29
 */
@Data
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
@ApiModel(value="Menu对象", description="")
public class Menu implements Serializable {

    private static final long serialVersionUID = 1L;

    @ApiModelProperty(value = "菜谱ID")
    @TableId(value = "menu_id", type = IdType.ID_WORKER_STR)
    private String menuId;

    @ApiModelProperty(value = "发布者ID")
    private String userId;

    @ApiModelProperty(value = "菜谱名称")
    private String menuName;

    @ApiModelProperty(value = "耗时")
    private Integer costTime;

    @ApiModelProperty(value = "菜谱步骤")
    private String menuStep;

    @ApiModelProperty(value = "点赞数量")
    private Integer likedNumber;

    @ApiModelProperty(value = "收藏数量")
    private Integer collectedNumber;

    @ApiModelProperty(value = "菜谱图片")
    private String menuImg;

    @TableField(exist = false)
    List<Ingredient> ingredients;


}
